function getAjax() {
	var req = false;
	try {
		req = new XMLHttpRequest();
	} catch(err) {
		try {
			req = new ActiveXObject("Msxml12.XMLHTTP");
		} catch(err) {
			try {
				req = new ActiveXObject("Microsoft.XMLHTTP");
			} catch(err) {
				req = false;
			}
		}
	}
	return req;
}

function updateDirectory() {
	var daPage = 'list.php';
	myReq.open("GET", daPage, true);
	myReq.onreadystatechange = process;
	myReq.send(null);
	setTimeout(updateDirectory, 2300);
}
var tempsnippet;
function process() {
	if(myReq.readyState == 4) {
		if(myReq.status == 200) {
			snippet = myReq.responseText;
			if(snippet != tempsnippet) {
				tempsnippet = snippet;
				document.getElementById('filedrag').innerHTML = snippet;
			}
		}
	} else {
		// loading
	}
}   